package com.wct.permission.service;


import com.wct.permission.domain.SysRole;
import com.wct.permission.mapper.RoleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RoleService{
    @Autowired
    private RoleDao roleDao;

    public void save(SysRole role) {
        roleDao.save(role);
    }


    public List<SysRole> findAll() {
        return roleDao.findAll();
    }
}
